﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
public partial class NguyenTuanAnh03 : System.Web.UI.Page
{
    
    protected void Page_Load(object sender, EventArgs e)
    {
        DBAccess db = new DBAccess();
        SqlDataAdapter da = new SqlDataAdapter("select * from MAT_HANg where [ID_LOAI_HANG] =" + Request.QueryString["ID_LOAI_HANG"].ToString() + ";", db.con);
        //DataSet ds = new DataSet();
        //da.Fill(ds);
        //DataList1.DataSource = ds;
        //DataList1.DataBind();
        SqlDataReader dr = db.DataReader("select * from MAT_HANg where [ID_LOAI_HANG] =" + Request.QueryString["ID_LOAI_HANG"] + ";");
        Image1.ImageUrl = dr[3].ToString();
        Image2.ImageUrl = dr[3].ToString();
        Image3.ImageUrl = dr[3].ToString();
    }
}